import request from '@/utils/request'


// 反控设备
export function controlDevice(data) {
  return request({
    url: '/public/third/control',
    method: 'post',
    data: data
  })
}

// 摄像机流
export function cameraStream(id) {
  return request({
    url: '/public/third/camera/'+id,
    method: 'get'
  })
}

// 查询摄像机指定日期的录像
export function queryRecord(id, day) {
  return request({
    url: '/public/third/records/' + id+"?day="+day,
    method: 'get'
  })
}

// 查询摄像机的录像流
export function recordStream(id, name) {
  return request({
    url: '/public/third/record/'+id +'?name=' + name,
    method: 'get'
  })
}
